export default {
  methods: {
    dorq(TN, DATA) {
      const req = JSON.stringify({
        OTRequest: {
          VERSION: '1.0',
          TN,
          CLIENTID: 'YLAPP',
          RYBID: 'DOCTOR',
          test: 'qwe',
          TOKEN: localStorage.getItem('rybToken'),
          DATA,
        },
      });
      this.spost(this.ts, '/doctor/debug/AppMainServlet.ap', {
        '': req,
      }).then((ts) => {
        this.list = ts.d.DATAOBJ.DATA.reverse();
      }).catch((d) => {
        alert(`${d.RESULT}   ${d.RESULTTEXT}`);
        // 重新登录
        this.$router.push('index.0');
      });
    },
  },
};
